package com.szrt.java.day20161222.wu.t02;

public class DoChange {
	public static void main(String[] args) {
		int left = 8 ;
		int right = 10;
		int center = 0;
		
		System.out.println("比较前的值：");
		System.out.println("left : "+left+"    right : "+right);
		if(right>left){
			center = right;
			right = left;
			left = center;
		}
		
		System.out.println("\n比较后的值：");
		System.out.println("left : "+left+"    right : "+right);
	}

}
